package com.lczyfz.istep.common.utils.quartz;

import com.lczyfz.istep.modules.sys.entity.ScheduleJob;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by 锋情 on 2016-11-24.
 */
@Service
@Lazy(false)
public class TestJobWithFactory {

    public void doJobTest() {

        System.out.println("Hello World 111! - no params " + new Date());

    }

    public void doJobTest(ScheduleJob scheduleJob) {

        System.out.println("Hello World ! - " + scheduleJob.getJobName() + new Date());


    }
}
